package lesson007;

import cn.liontalk.lesson007.IocUtil;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LessondiOtherType {

    /**
     * 其他各种类型注入
     */


    @Test
    public void diOtherType() {
        String beanXml = "classpath:/cn/liontalk/lesson007/diOtherType.xml";
        ClassPathXmlApplicationContext context = IocUtil.context(beanXml);
        System.out.println(context.getBean("diOtherType"));
    }
}
